package com.kitty.game.item.message;

import com.kitty.game.item.message.vo.MergeItemId;
import com.kitty.mina.Modules;
import com.kitty.mina.annotation.MessageMeta;
import com.kitty.mina.message.Message;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

@Setter
@Getter
@MessageMeta(module = Modules.CMD_MERGE_DURABLE_ITEM)
public class ReqMergeDurableItem extends Message {
    private short index;

    private List<MergeItemId> itemIdList;

    /*function CmdParser:CMD_MERGE_DURABLE_ITEM(pkt, data)
  local count = #data
  pkt:PutShort(data.index)
  pkt:PutShort(count)
  for i = 1, count do
    local count = #data[i]
    local str = ""
    for j = 1, count do
      str = str .. data[i][j]
      if j < count then
        str = str .. "|"
      end
    end
    pkt:PutLenString2(str)
  end*/
}
